﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Apps.Model.Base;

namespace Apps.Model.Models
{
    /// <summary>
    /// 用户角色表
    /// </summary>
    [Table("Sys_User_Role")]
    public class SysUserRole : SysBase, IEntity<int>
    {
        /// <summary>
        /// 自增主键
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 角色id
        /// </summary>
        public int RoleId { get; set; }
    }
}
